View Javadoc
1 /* 2 * Scope: a generic MVC framework. 3 * Copyright (c) 2000-2002, The Scope team 4 * All rights reserved. 5 * 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 11 * Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 14 * Redistributions in binary form must reproduce the above copyright 15 * notice, this list of conditions and the following disclaimer in the 16 * documentation and/or other materials provided with the distribution. 17 * 18 * Neither the name "Scope" nor the names of its contributors 19 * may be used to endorse or promote products derived from this software 20 * without specific prior written permission. 21 * 22 * 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR 27 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 29 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 30 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 31 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 33 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 * 35 * 36 * $Id: DefaultScopeConfig.java,v 1.8 2002/09/12 10:51:34 ludovicc Exp $ 37 */ 38 package org.scopemvc.util; 39 40 41 import java.text.DateFormat; 42 import java.util.ListResourceBundle; 43 44 /*** 45 * <P> 46 * 47 * Default resources for Scope. Can be augmented with a new ResourceBundle to 48 * customize Scope behaviour, in which case, see {@link 49 * ScopeConfig#setPropertiesName}. Custom configuration specified this way 50 * overrides the defaults in this resource. </P> 51 * 52 * @author <A HREF="mailto:smeyfroi@users.sourceforge.net">Steve Meyfroidt</A> 53 * @created 05 September 2002 54 * @version $Revision: 1.8 $ $Date: 2002/09/12 10:51:34 $ 55 */ 56 public class DefaultScopeConfig extends ListResourceBundle { 57 58 static final Object[][] contents = { 59 // **** Swing stuff **** 60 {"org.scopemvc.controller.swing.SwingContext.window_icon", "/org/scopemvc/images/window_icon.gif"}, 61 {"org.scopemvc.controller.swing.SwingContext.progress_start_delay", new Integer(500)}, 62 {"PropertyViewer.swing-java.lang.String", "org.scopemvc.view.swing.SLabel"}, 63 {"PropertyViewer.swing-java.lang.Integer", "org.scopemvc.view.swing.SLabel"}, 64 {"PropertyViewer.swing-int", "org.scopemvc.view.swing.SLabel"}, 65 {"PropertyViewer.swing-java.lang.Long", "org.scopemvc.view.swing.SLabel"}, 66 {"PropertyViewer.swing-long", "org.scopemvc.view.swing.SLabel"}, 67 {"PropertyViewer.swing-java.lang.Float", "org.scopemvc.view.swing.SLabel"}, 68 {"PropertyViewer.swing-float", "org.scopemvc.view.swing.SLabel"}, 69 {"PropertyViewer.swing-java.lang.Double", "org.scopemvc.view.swing.SLabel"}, 70 {"PropertyViewer.swing-double", "org.scopemvc.view.swing.SLabel"}, 71 {"PropertyViewer.swing-java.lang.Boolean", "org.scopemvc.view.swing.SLabel"}, 72 {"PropertyViewer.swing-boolean", "org.scopemvc.view.swing.SLabel"}, 73 {"PropertyViewer.swing-java.util.Date", "org.scopemvc.view.swing.SLabel"}, 74 {"PropertyViewer.swing-org.scopemvc.util.Time", "org.scopemvc.view.swing.SLabel"}, 75 {"PropertyViewer.swing-org.scopemvc.util.DateTime", "org.scopemvc.view.swing.SLabel"}, 76 {"PropertyViewer.swing-java.math.BigDecimal", "org.scopemvc.view.swing.SLabel"}, 77 {"PropertyViewer.swing-java.math.BigInteger", "org.scopemvc.view.swing.SLabel"}, 78 {"PropertyEditor.swing-java.lang.String", "org.scopemvc.view.swing.STextField"}, 79 {"PropertyEditor.swing-java.lang.Integer", "org.scopemvc.view.swing.STextField"}, 80 {"PropertyEditor.swing-int", "org.scopemvc.view.swing.STextField"}, 81 {"PropertyEditor.swing-java.lang.Long", "org.scopemvc.view.swing.STextField"}, 82 {"PropertyEditor.swing-long", "org.scopemvc.view.swing.STextField"}, 83 {"PropertyEditor.swing-java.lang.Float", "org.scopemvc.view.swing.STextField"}, 84 {"PropertyEditor.swing-float", "org.scopemvc.view.swing.STextField"}, 85 {"PropertyEditor.swing-java.lang.Double", "org.scopemvc.view.swing.STextField"}, 86 {"PropertyEditor.swing-double", "org.scopemvc.view.swing.STextField"}, 87 {"PropertyEditor.swing-java.lang.Boolean", "org.scopemvc.view.swing.SCheckBox"}, 88 {"PropertyEditor.swing-boolean", "org.scopemvc.view.swing.SCheckBox"}, 89 {"PropertyEditor.swing-java.util.Date", "org.scopemvc.view.swing.STextField"}, 90 {"PropertyEditor.swing-org.scopemvc.util.Time", "org.scopemvc.view.swing.STextField"}, 91 {"PropertyEditor.swing-org.scopemvc.util.DateTime", "org.scopemvc.view.swing.STextField"}, 92 {"PropertyEditor.swing-java.math.BigDecimal", "org.scopemvc.view.swing.STextField"}, 93 {"PropertyEditor.swing-java.math.BigInteger", "org.scopemvc.view.swing.STextField"}, 94 // **** Servlet stuff **** 95 {"org.scopemvc.controller.servlet.ScopeServlet.ControlParam", "action"}, 96 {"org.scopemvc.controller.servlet.ScopeServlet.ViewIDParam", "view"}, 97 {"ServletFormParameter.propertyIDPrefix", "."}, 98 {"org.scopemvc.view.servlet.xml.AbstractXSLPage.shouldCacheTemplates", "1"}, 99 // or "0" during development 100 {"org.scopemvc.view.servlet.xml.AbstractXSLPage.debugXMLDirectory", ""}, 101 // or "/tmp/xml/" during development to see XML files before XSL processing 102 {"org.scopemvc.controller.servlet.ScopeServlet.maxControllerPoolSize", new Integer(10)}, 103 // **** Model stuff **** 104 105 {"PropertyManager", "org.scopemvc.model.beans.BeansPropertyManager"}, 106 {"ActionManager", "org.scopemvc.model.beans.BeansActionManager"}, 107 {"EditorManager", "org.scopemvc.model.beans.BeansEditorManager"}, 108 // **** StringConvertor definitions **** 109 {"StringConvertors", "org.scopemvc.util.convertor.StringConvertors"}, 110 {"StringConvertor.java.lang.String", "org.scopemvc.util.convertor.StringStringConvertor"}, 111 {"StringConvertor.java.lang.Integer", "org.scopemvc.util.convertor.IntegerStringConvertor"}, 112 {"StringConvertor.int", "org.scopemvc.util.convertor.IntegerStringConvertor"}, 113 {"StringConvertor.java.lang.Long", "org.scopemvc.util.convertor.LongStringConvertor"}, 114 {"StringConvertor.long", "org.scopemvc.util.convertor.LongStringConvertor"}, 115 {"StringConvertor.java.lang.Float", "org.scopemvc.util.convertor.FloatStringConvertor"}, 116 {"StringConvertor.float", "org.scopemvc.util.convertor.FloatStringConvertor"}, 117 {"StringConvertor.java.lang.Double", "org.scopemvc.util.convertor.DoubleStringConvertor"}, 118 {"StringConvertor.double", "org.scopemvc.util.convertor.DoubleStringConvertor"}, 119 {"StringConvertor.java.lang.Boolean", "org.scopemvc.util.convertor.BooleanStringConvertor"}, 120 {"StringConvertor.boolean", "org.scopemvc.util.convertor.BooleanStringConvertor"}, 121 {"StringConvertor.java.util.Date", "org.scopemvc.util.convertor.DateStringConvertor"}, 122 {"StringConvertor.org.scopemvc.util.Time", "org.scopemvc.util.convertor.TimeStringConvertor"}, 123 {"StringConvertor.org.scopemvc.util.DateTime", "org.scopemvc.util.convertor.DateTimeStringConvertor"}, 124 {"StringConvertor.java.math.BigDecimal", "org.scopemvc.util.convertor.BigDecimalStringConvertor"}, 125 {"StringConvertor.java.math.BigInteger", "org.scopemvc.util.convertor.BigIntegerStringConvertor"}, 126 // Null formatters for DateStringConvertors (the default default is set in the convertor...) 127 {"org.scopemvc.util.convertor.DateStringConvertor.formatter", DateFormat.getDateInstance(DateFormat.MEDIUM)}, 128 {"org.scopemvc.util.convertor.TimeStringConvertor.formatter", DateFormat.getTimeInstance(DateFormat.MEDIUM)}, 129 {"org.scopemvc.util.convertor.DateTimeStringConvertor.formatter", DateFormat.getDateTimeInstance()}, 130 }; 131 132 133 /*** 134 * Gets the contents 135 * 136 * @return The contents value 137 */ 138 public Object[][] getContents() { 139 return contents; 140 } 141 }

This page was automatically generated by Maven